Skip to content

Fix CFP close date missing the month#141

Merged
matrixise merged 5 commits into
mainfrom
fix/cfp-date-locale
Jun 7, 2026
Merged

Fix CFP close date missing the month#141
matrixise merged 5 commits into
mainfrom
fix/cfp-date-locale

Conversation

@matrixise

Copy link
Copy Markdown
Contributor

Problem

On the homepage key-facts bar, the CFP closing date rendered as 31 2026 (with the month missing) instead of 31 July 2026.

Root cause

The site locale was set to en-IE, whose CLDR dataset bundled with Hugo is missing abbreviated month names. As a result, any abbreviated month format token (e.g. Jan) renders an empty string. en-GB has the same gap; en and en-US work correctly.

Changes

  • hugo.toml: change locale from en-IE to en, so both abbreviated and full month formats work. Stays English with day/month ordering (the order is enforced by the Go layout string, not the locale).
  • layouts/index.html: use "2 January 2006" for the CFP close date, consistent with the format already used on the CFP and key-questions pages.

Verification

After the fix the homepage renders closes 31 July 2026 and the CFP page renders Opens 25 May 2026 / Deadline 31 July 2026.

matrixise added 5 commits June 4, 2026 21:27
The homepage key-facts bar showed "31  2026" instead of "31 July 2026"
for the CFP closing date.

Root cause: the site locale was "en-IE", whose CLDR dataset in Hugo lacks
abbreviated month names. Any abbreviated month format (e.g. "Jan") rendered
an empty string. "en-GB" has the same gap.

- hugo.toml: set locale to "en" so both abbreviated and full month formats
  work, keeping English with day/month ordering
- layouts/index.html: use "2 January 2006" for the CFP close date, matching
  the format already used on the CFP and key-questions pages
@netlify

netlify Bot commented Jun 7, 2026

Copy link
Copy Markdown

Deploy Preview for pycon-ireland-2026 ready!

Name Link
🔨 Latest commit a4ab758
🔍 Latest deploy log https://app.netlify.com/projects/pycon-ireland-2026/deploys/6a256062f52ddf0008cd9bc2
😎 Deploy Preview https://deploy-preview-141--pycon-ireland-2026.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@matrixise matrixise merged commit 42111e4 into main Jun 7, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant